<?php
/*
$JA#COPYRIGHT$
*/

defined( '_JEXEC' ) or die( 'Restricted access' );
$width_mod = $params->get('width_mod', 500);

?>
<div style="color:black; width: <?php echo $width_mod;?>px;">
                    <div class='red_product-skin-produkter'>
					<div style='display: block;' class='red_product-container red_product-container-horizontal'>
						<div style='display: block;' class='red_product-prev red_product-prev-horizontal'></div>
						<div style='display: block;' class='red_product-next red_product-next-horizontal'></div>
						<div class='red_product-clip red_product-clip-horizontal'>
							<ul id='produkt_carousel' class='red_product-list red_product-list-horizontal'>
							
    <?php for ($i=0;$i<$number_employer;$i++){
		if (intval($i)%intval($number_column)==0){?>
		  
							
		<?php }?>
		<?php if (isset($items[$i])){
			$file = '';
			if ($items[$i]->logo)
			{
				$temp_path = str_replace('\\',DS,$items[$i]->logo);
			
				$temp_path = str_replace('/',DS,$items[$i]->logo);
				if (file_exists($temp_path))
				{
					$items[$i]->logo = jaJBResize($items[$i]->logo,$item_width,$item_height);
					$imgInfo = getimagesize($items[$i]->logo);
					$file = $items[$i]->logo;
				}
				else 
				{
					$file = 'components/com_jajobboard/images/no-image.gif';
					$imgInfo = array();
					$imgInfo[0] = $item_width;
					$imgInfo[1] = $item_height;
				}
			}
			else 
			{
				$file = 'components/com_jajobboard/images/no-image.gif';
				$imgInfo = array();
				$imgInfo[0] = $item_width;
				$imgInfo[1] = $item_height;
			}
			$temp = JFactory::getUser($items[$i]->user_id_tmp);
			if (is_object($temp))
			$username = $temp->username;
			$username = str_replace('.', '()', $username);
			
			$url = JRoute::_("index.php?option=com_jajobboard&view=japrofiles&layout=jaview&cid[]=".$username.'&Itemid=1000');
			$frontxt = isset($items[$i]->short_desc)?$items[$i]->short_desc:'';
	   ?>
			<li>
        	       <div>		
			             <a <?php if ($follow != "1") echo "rel=\"nofollow\""; ?> style="text-decoration:none;" target="<?php if ($sb != "self") { echo "_blank"; } else { echo "_self"; } ?>" href="<?php echo $url;   ?>">
                        
            				<img alt="<?php echo $username?>" width="<?php echo $imgInfo[0]; ?>" height="<?php echo $imgInfo[1]; ?>" src="<?php echo $baseurl; if ($file != "") { echo $file; } ?>" name="a<?php echo $items[$i]->id; ?>" border="1" id="a<?php echo $items[$i]->id; ?>" />
                       
        			     </a>	
        			</div>	
    		</li>
			
            <?php
		}
		else 
		{
?>
			
				<img  style="padding:<?php echo $padd;?>px;"  
            	width="<?php echo $item_width; ?>" 
	    		height="<?php echo $item_height; ?>" 
            	src="<?php echo $baseurl."modules/mod_jafeatured_employer/blank.jpg";?>" 
            	name="a" border="0" id="a" />
<?php 
		}
	}	
?>
                            </ul>
	                    </div>
	                </div>
	            </div>
</div>




							